package cn.yanhu.kuwanapp.my.adapter

import android.content.Context
import android.graphics.Color
import android.widget.TextView
import cn.woochen.comlib.adapter.CommonRecyclerAdapter
import cn.yanhu.kuwanapp.R
import cn.yanhu.kuwanapp.bean.response.RespMsgBean
import cn.yanhu.kuwanapp.bean.response.RespWithdrawHomeBean
import cn.yanhu.kuwanapp.databinding.ItemWithdrawOptionBinding

class WithdrawOptionAdapter constructor(datas: List<RespWithdrawHomeBean.RewardOptional>) :
    CommonRecyclerAdapter<RespWithdrawHomeBean.RewardOptional>(
        datas, R.layout.item_withdraw_option
    ) {

    override fun convert(holder: ViewHolder, item: RespWithdrawHomeBean.RewardOptional) {
        holder.getDataBinding<ItemWithdrawOptionBinding?>()?.let {
            it.itemInfo = item
            it.llContent.isSelected = item.select
            it.tvMoney.isSelected = item.select
            it.tvGold.isSelected = item.select
        }
    }
}